package me.zk.practice1.thread;

import org.apache.poi.ss.formula.functions.T;

/**
 * @author zhangkai
 * @date 2023/7/18 09:24
 */
public class ThreadLocalDemo {
    public static void main(String[] args) {
        ThreadLocal<Integer> t1 = new ThreadLocal<>();
        t1.set(1);
        ThreadLocal<String> t2 = new ThreadLocal<>();
        t2.set("23");
        t1.remove();
        Thread thread = Thread.currentThread();
        System.out.println(Thread.currentThread().getName());
    }
}
